package billeterie;

import java.util.Date;

/**
 *
 * @author samir
 */
public class Billet {

    private int id_billet;
    private int id_personne;
    public int id_voyage;
    public int num_siege;
    public Date dateDePrise;

    public Billet(int id_billet, int id_personne, int id_voyage, int num_siege, Date dateDePrise) {
        this.id_billet = id_billet;
        this.id_personne = id_personne;
        this.id_voyage = id_voyage;
        this.num_siege = num_siege;
        this.dateDePrise = dateDePrise;
    }

    public int getId_billet() {
        return id_billet;
    }

    public void setId_billet(int id_billet) {
        this.id_billet = id_billet;
    }

    public Date getDateDePrise() {
        return dateDePrise;
    }

    public void setDateDePrise(Date dateDePrise) {
        this.dateDePrise = dateDePrise;
    }

    public int getId_personne() {
        return id_personne;
    }

    public void setId_personne(int id_personne) {
        this.id_personne = id_personne;
    }

    public int getId_voyage() {
        return id_voyage;
    }

    public void setId_voyage(int id_voyage) {
        this.id_voyage = id_voyage;
    }

    public int getNum_siege() {
        return num_siege;
    }

    public void setNum_siege(int num_siege) {
        this.num_siege = num_siege;
    }

    @Override
    public String toString() {
        return "Billet{" + "id_billet=" + id_billet + ", id_personne=" + id_personne + ", id_voyage=" + id_voyage + ", num_siege=" + num_siege + ", dateDePrise=" + dateDePrise + '}';
    }

}
